﻿
<template>
    <div>
        <!-- 添加按钮 -->
        <div class="btn-add">
            <!--<button type="button" class="btn btn-info btn-lg" @click="Add()"><i class="iconfont icon-jiahao ft12 mr5"></i>发起提案</button>-->
        </div>
        <!-- 按条件选择 -->
        
        <div class="default-tab ft14  hover-btn" style="overflow-x: inherit;padding:20PX">
            <base-table :pzoption="tableop">
            </base-table>
        </div>
        <!-- 表格 -->



    </div>
</template>

<script>
    module.exports = {
        props: ['pdata'],
        components: {
            'base-table': httpVueLoader('/ViewV5/Base/Vue/Table.vue')
        },
        data: function () {
            return {
                activeName: 'first',
                VIEWS: [],
                SelDSourceItem: {},
                tableop: {
                    title: "办理中的提案",
                    issel: false,
                    iscz: true,
                    dataset: [],
                    czltabledata: [
                        {
                            colname: "查看", bttype: "primary", isshow: true, mangefun: function (rowdata) {
                                window.open("/ViewV5/AppPage/FORMBI/FormManage.html?vtype=0&piid=" + rowdata.ID, "_blank");
                            },
                        },
                    ],
                    collist: [
                        { colid: "Title", colname: "案由", isshow: true, istip: true },
                        { colid: "CRUserName", colname: "提案人", isshow: true, istip: true },
                        { colid: "BranchName", colname: "所在部门", isshow: true, istip: true },
                        { colid: "TaskName", colname: "提案处理状态", isshow: true, istip: true },
                        { colid: "CRDate", colname: "提案时间", isshow: true, istip: true }

                    ]
                }
            }
        },
        methods: {
            InitWigetData: function () {
                var pro = this;
                $.getJSON('/api/Bll/ExeAction?Action=TAXT_GETBLZDATA', { P2: "" }, function (resultData) {
                    if (resultData.Result.length > 0) {
                        pro.tableop.dataset = resultData.Result;
                  
                    }
                })

            },
        },
        mounted: function () {
            var pro = this;
            pro.$nextTick(function () {
                pro.InitWigetData();
            })

        }
    };
</script>